package com.bitmapgame;

public class Marble
{
    int xCoord, yCoord;
    double xVel, yVel;
    int defaultVel = 20;

    public Marble(int x, int y)
    {
        xCoord = x;
        yCoord = y;
        xVel = yVel = -defaultVel;
    }

    public int GetX(){return xCoord;}
    public int GetY(){return yCoord;}
    public double GetXVel(){return xVel;}
    public double GetYVel(){return yVel;}

    public void SetX(int x){xCoord = x;}
    public void SetY(int y){yCoord = y;}
    public void SetXVel(double x){xVel = x;}

    public void InvertXVel(){xVel *= -1;}
    public void InvertYVel(){yVel *= -1;}

    public void ResetVel(){xVel = yVel = -defaultVel;}
}
